home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / displytl / cursor.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  2.6 KB  |  82 lines

  1. /*
  2.  * Copyright (c) 1990, 1991, 1992 Stanford University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and 
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that (i) the above copyright notices and this permission notice appear in
  7.  * all copies of the software and related documentation, and (ii) the name
  8.  * Stanford may not be used in any advertising or publicity relating to
  9.  * the software without the specific, prior written permission of
  10.  * Stanford.
  11.  * 
  12.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  13.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  14.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  15.  *
  16.  * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  17.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
  19.  * ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
  20.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21.  * SOFTWARE.
  22.  */
  23. /* $Header: /Source/Media/collab/DisplayTool/RCS/cursor.c,v 1.1 92/10/29 13:53:56 drapeau Exp $ */
  24. /* $Log:    cursor.c,v $
  25.  * Revision 1.1  92/10/29  13:53:56  drapeau
  26.  * Initial revision
  27.  *  */
  28. static char dtCursor[] = "$Header: /Source/Media/collab/DisplayTool/RCS/cursor.c,v 1.1 92/10/29 13:53:56 drapeau Exp $";
  29.  
  30. #include "DisplayTool.h"
  31. #include "externs.h"
  32.  
  33. #include <xview/cursor.h>
  34.  
  35. static Xv_Cursor busyCursor;
  36. static Xv_Cursor normalCursor;
  37.  
  38. void CreateCursor() 
  39. {
  40.   busyCursor = (Xv_Cursor) xv_create(XV_NULL, CURSOR,
  41.                 CURSOR_SRC_CHAR, OLC_BUSY_PTR,                 
  42.                 NULL);
  43.   normalCursor = (Xv_Cursor) xv_create(XV_NULL, CURSOR,
  44.                 CURSOR_SRC_CHAR, OLC_BASIC_PTR,                 
  45.                 NULL);
  46. }                                    /* end function CreateCursor */
  47.  
  48.  
  49.  
  50. void NormalCursor()
  51. {
  52.   xv_set(xv_get(baseWindow->gallery, CANVAS_NTH_PAINT_WINDOW, 0),
  53.      WIN_CURSOR, normalCursor, NULL);        
  54.   xv_set(xv_get(baseWindow->slides, CANVAS_NTH_PAINT_WINDOW, 0),
  55.      WIN_CURSOR, normalCursor, NULL);        
  56. }                                    /* end function NormalCursor */
  57.  
  58.  
  59.  
  60. void BusyCursor() 
  61. {
  62.   xv_set(xv_get(baseWindow->gallery, CANVAS_NTH_PAINT_WINDOW, 0),
  63.      WIN_CURSOR, busyCursor, NULL);        
  64.   xv_set(xv_get(baseWindow->slides, CANVAS_NTH_PAINT_WINDOW, 0),
  65.      WIN_CURSOR, busyCursor, NULL);        
  66. }                                    /* end function BusyCursor */
  67.  
  68.  
  69.  
  70. void BusyApp()
  71. {
  72.   xv_set(baseWindow->baseWindow, FRAME_BUSY, TRUE, NULL);
  73.   BusyCursor();
  74. }                                    /* end function BusyApp */
  75.  
  76.  
  77. void NormalApp()
  78. {
  79.   xv_set(baseWindow->baseWindow, FRAME_BUSY, FALSE, NULL);
  80.   NormalCursor();
  81. }                                    /* end function NormalApp */
  82.